//
//  SecondViewController.m
//  MUPay
//
//  Created by 胡发冬 on 16/6/6.
//  Copyright © 2016年 胡发冬. All rights reserved.
//

#import "SecondViewController.h"


#import "MUPayMethod.h"


@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //_textFieldOutBody.keyboardType = UIKeyboardTypeDefault;
    _textFieldOutBody.text = @"测试支付";
    
    
    
    
    _textFieldOutFee.keyboardType = UIKeyboardTypeDecimalPad;
    _textFieldOutFee.text = @"0.01";
    
    
    
    
    _textFieldOutNo.keyboardType=UIKeyboardTypeNumberPad;
    srand( (unsigned)time(0) );
    _textFieldOutNo.text = [NSString stringWithFormat:@"%d", rand()];
    
    
    
}
- (IBAction)Pay:(UIButton *)sender {
    
    
    [self MUPaywithwithviewController:self.view body:_textFieldOutBody.text Totle_fee:_textFieldOutFee.text Out_no:_textFieldOutNo.text];
    
    
}



- (IBAction)backBtn:(UIBarButtonItem *)sender {
    
    [self dismissViewControllerAnimated: YES completion: nil ];
    
}


- (IBAction)BtnBackground:(UIButton *)sender {
    
    for (UIView *view in self.view.subviews) {
        [view resignFirstResponder];
    }
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
